//
//  F_SingleScence_ViewController.swift
//  MyFood
//
//  Created by dllo on 16/2/21.
//  Copyright © 2016年 XRG. All rights reserved.
//

import UIKit
import SwiftyJSON

// 场景页面自己铺的VC
class F_SingleScence_ViewController: BaseViewController {

    var sceneID : Int!

    override func viewDidLoad() {
        super.viewDidLoad()
        print(self.sceneID)
        createData()
        // Do any additional setup after loading the view.
    }

    func createData(){


        XRAFNetworkTool.POSTUrl(BASE_URL, body: "scene_id=\(self.sceneID)&page=1&methodName=SceneInfo&size=20&version=4.3.1&", requestBodyStyle: XRRequestStyle.String, headFile: nil, response: XRResponseStyle.XRJSON, success: { (task, result) -> Void in

//            let json = JSON(result)

            }) { (task, error) -> Void in
                print(error)
        }


    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
